Red Hat / CentOS / Fedora 您所在的位置:网站首页 unix server Red Hat / CentOS / Fedora

Red Hat / CentOS / Fedora

2023-03-23 03:23| 来源: 网络整理| 查看: 265

Guide Followed: https://community.splunk.com/t5/Getting-Data-In/Reading-Apache-server-status-output/m-p/48158

First make sure your Apache server-status is setup (assuming you already have Apache/httpd installed)

# Create apache_exporter user sudo useradd apache_exporter -s /sbin/nologin # Create Apache Location declare apache_exporter=$(cat new('GET'); $request->url($url); my $response = $ua->request($request); my $body = $response->content; ### Extract stats $body=~ m/Apache Server Status for ([^>]+)/; $server_name=$1; $body=~ m/Current Time: [^,]+, ([^


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有